import java.awt.*;

public class TriangleTest{
	public static void main(String[] args)
	{
		Triangle t = new Triangle( new Point(0,0), new Point(1,1), new Point(2,2));

		ColoredTriangle ct = new ColoredTriangle(Color.red, new Point(0,0) , new Point(1,1) , new Point(2,2));

		System.out.println(t.equals(ct));
		System.out.println(ct.equals(t));

		ColoredTriangle redT = new ColoredTriangle(Color.red, new Point(0,0) , new Point(1,1) , new Point(2,2));
		ColoredTriangle blueT = new ColoredTriangle(Color.blue, new Point(0,0), new Point(1,1), new Point(2,2));

		System.out.println(redT.equals(blueT));
		System.out.println(blueT.equals(redT));

		ColoredTriangle rct = new ColoredTriangle(Color.red, new Point(0,0), new Point(1,1), new Point(2,2));

		System.out.println(t.equals(rct));
		System.out.println(rct.equals(t));
	}
}
